QuickTime 3 Reference

Previous | Chapter Top | Chapter Contents | Next

Gradients for Path Fills

A gradient is a fill that contains continuous fades from one color to another. Unlike QuickDraw GX, which supports gradient fills only for bitmaps, QuickTime supports gradient fills for the paths used for QuickTime vectors.

There are two types of gradients: linear, in which the fade begins at one point on a line and ends at another, and circular, in which the fade begins at the center of a circle and ends at the circumference. Figure 27-56 illustrates a white-to-black, left-to-right linear gradient, and Figure 27-57 illustrates a white-to-black circular gradient.

Figure 27-56 A linear gradient

Figure 27-57 A circular gradient

To enable or disable gradient fills and to specify the attributes of gradients, you add atoms to the vector data stream, as described in "Using QuickTime Vectors" :

For complete descriptions of these atoms and their default values, see "Vector QT Atom Container" .


© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next